home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
mcroade3.arc
/
EDITM.DOC
< prev
next >
Wrap
Text File
|
1991-07-06
|
5KB
|
122 lines
EditM.wpm
Enables Use of External Text Editor
for Editing Macros from Within WordPerfect
by
Jeffrey S. Kane, Ph.D.
Performance Sciences International
Summerfield, NC
1. Read the MacroAde.doc and Disclaim.er files distributed with this
macro.
2. Requires:
A. WordPerfect 5.1
B. The presence of the following files in the directory
where your WordPerfect macro files reside:
1) EditMac.bat
2) Macrolst.exe
3) MCompile.exe
3. Features:
A. Enables the user to utilize his/her favorite external
text editor (e.g., QEDIT, MultiEdit, VEDIT, Norton
Editor,...Edlin?) to edit any macro while staying within
a keystroke of returning to the place in a WordPerfect
document from which the macro editing originated.
B. The edited macro is recompiled and ready for use as soon
as the user returns to WordPerfect from the editing
session.
C. In short, allows the user to gain the advantage of all
the power and familiarity of his/her text editor to edit
macros without any sacrifice in convenience.
4. Installation:
A. Copy the following files to the directory in which your
WordPerfect macros are located:
1) EditM.wpm
2) EditMac.bat
3) Macrolst.exe
4) MCompile.exe
5) Commands.ref
B. If your macro files are NOT located in 'D:\WP51\', then
edit the EditM.wpm macro using WordPerfect's macro editor
(Ctrl-F10 EditM 2). Change the value assigned to the
"WPMDir" variable in the header section to the directory
in which your macro files are located. Be sure to put
the closing "\" at the end of any other directory you
enter.
C. At the DOS command line change to the directory in which
your macro files are located. Use your text editor to
edit the file, EditMac.bat. When you bring this short
batch file up on your editor's screen you'll see a
comment section that instructs you to change the next
command line to reflect the command needed to start your
editor on the file designated by the batch parameters
%2%1.LST. Follow these instructions precisely and then
save the file.
D. With the completion of the above steps, installation is
finished.
5. Operation:
To edit a macro with your external text editor without leaving
WordPerfect, simply run the EditM macro (ALT-F10 EditM
[ENTER]). You will then be prompted to enter the name of the
macro you wish to edit. You need only enter the name without
the .wpm (although the .wpm extension will be accepted). The
macro will then shell to DOS where the batch file will take
over. An ASCII text version of the macro will be created by
MACROLST and you will be placed in an editing session on that
file using your text editor. Make any changes that you wish
to make to the macro. For assistance in the syntax of macro
and keystroke commands, bring up the Commands.ref file in a
separate window in your editor. It contains all of the
commands as well as the number codes for the keystroke
commands. When you're finished, save the macro file and exit
the editor. The compiler will take over at that point and
recompile the macro. You'll then be returned to your
WordPerfect document at the place whence you began the macro
editing.
Note that if either the name of the macro is mis-
specified or an error occurs during the attempt to recompile
the edited macro, the errors are caught and their correction
is required before the process can proceed further. In the
case of mis-specifying the macro name, the user is simply
alerted to the fact and returned to WordPerfect where he/she
can try again. If an error occurs during compilation, the
user is returned into his/her editor to correct the problem.
If for some reason you don't want to be returned to the editor
(e.g., you've tried to fix the problem numerous times with no
success), just press Ctrl-BREAK at the point where you're told
to press any key and respond with 'Y' to the prompt 'Cancel
Batch Job (Y/N)?'. This will cause the original version of
the .wpm macro file to be restored and you'll be returned to
WordPerfect at the place from which you started the attempt to
edit the macro.
6. Technical support:
Free technical support will be furnished to any licensed user
who calls on weekdays during the hours from 9:00 a.m. to 5:00 p.m.
(Eastern) at the following number: (919) 643-3492
We may also be reached by mail at:
Performance Sciences International
Suite 1250
3001 Latta Drive
Summerfield, NC 27358